Method and system for determining statistical data for image pixels having a higher bit depth per band

ABSTRACT

A system and method for determining statistical data within an image having pixels with relatively higher bit depth per band and a system and method of converting a first image within the image having pixels with the relatively higher bit depth per band into a second image having a relatively lower bit depth per band. The higher bit depth per band includes greater than 8 bits per band. The method of determining statistical data for pixels of an image includes dividing the image having pixels with the higher bit depth per band into a plurality of polygonal sections, each polygonal section including substantially homogenous features; computing statistical data for pixels within each polygonal section; and storing the statistical data with the image.

CROSS REFERENCE TO RELATED APPLICATION

The present patent application claims priority from provisional patentapplication No. 61/314,257 filed on Mar. 16, 2010, the contents of whichare incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention pertains to data management and in particular to amethod and system for determining statistical data for pixels of animage and a method and system of converting an image for viewing on adisplay device.

2. Discussion of Related Art

An image generally contains a plurality of pixels and each pixel hasone, two or more bands. Each band has a certain color depth or bitdepth. For example, an RGB color-based image has 3 bands, the red band(R), the green band (G) and the blue band (B). Each of the R, G and Bbands can have a depth of 8 bits or more. In order to be able tovisualize or view images having a bit-depth greater than 8 bits per band(i.e., images having a depth of N-bits per band, with N greater than 8)on a display device that is configured to display an image having 3bands (each band having an 8-bit depth), a bit depth down-samplingoperation is performed. For example, a bit-depth down-sampling operationis performed on the image having N-bits per band to transform or convertthe image into another image in the RGB system where each band (R band,G band and B band) has 8 bits of depth (i.e., a 24-bit RGB image).

Some conventional methods use a pre-computed N-bit to 8-bit look uptable (LUT) per band to down-convert the image with higher bit depth perband into a lower bit depth (e.g., 8-bit depth) per band. When referringto “higher” bit depth per band herein, this is intended to refer to abit depth of greater than 8 bits per band. Other methods such as tonemapping method involve executing algorithms to adaptively compute theN-bit (where N is greater than 8) to 8-bit conversion, pixel by pixel.The latter method of performing the down-conversion or down-sampling canbe computer and time intensive based on the quality of theimplementation of the algorithm. An increasing number of computingenvironments have implemented these two types of down-conversion methodsinto hardware or into software. Most of these methods employ thegeneration and application of statistical information gathered byprocessing pixel data in the image.

When pixels containing bands with bit depth greater than 8-bits per bandare stored into disk files, they are stored in 16-bit, 32-bit, or higherbit depths per band. For example, an original image sensor may havecaptured data at 10, 11, 12, or 15 bits per band. However, when an imagefile containing these pixel values is stored on disk, it is generallystored at 16-bits per band. While this may be considered as waste ofspace, it is also deemed highly efficient for computing platforms oftoday.

When a vendor distributes to a customer imagery that was originallycaptured at a value greater than 8 bits per band (e.g., 16-bits perband), very often the vendor is forced to distribute the original imagedata as well as additional image data that was pre-converted atsignificant computational cost to the 8-bit depth per band, specificallyfor display. Under these circumstances, the 8-bit data would occupy anadditional 50% more storage alongside the original 16-bit data.Compression is further used to save space on disk. If the compression islossy, the compression degrades the image. If the compression is notlossy, the compression is not as efficient to read and decode thecompressed data for visualization. A customer sometimes may choose todiscard the original 16-bit data and just use the 8-bit data in criticaldecision making tasks because of a lack of sufficient amount of storageor the lack of computing power to handle on-the-fly conversions. If thecustomer chooses to only use 16-bit data in critical decision makingtasks, the overhead of on-the-fly conversion to 8-bit depth forvisualization bears an additional computational cost or requiresadditional computing power which further increases costs. However, theflexibility that on-the-fly 16-bit to 8-bit depth conversion offers isthat the customer can select one of several methods to convert the imageto 8-bit depth prior to display.

If a computationally inexpensive method was available for betteron-the-fly visualization of data that was collected and stored at bitdepths greater than 8-bits per band, it would be ideal to supply theoriginal data (greater than 8-bits per band) to the customer and let thecustomer choose amongst the various methods available for displayingthis data. Hence, distributing pre-converted 8-bit depth per band datawould not be necessary, thus saving additional disk space requirement aswell as saving the vendor the added cost of converting the data to 8-bitdepth.

The method or methods described in the following paragraphs provide amechanism for pre-computing and storing data within the image, andutilizing this data to make subsequent on-the-fly conversion of theimage data having a higher bit depth per band to a lower bit depth perband (e.g., 8 bit depth per band) for the display of the imagecomputationally inexpensively.

BRIEF SUMMARY OF THE INVENTION

An aspect of the present invention is to provide a method fordetermining statistical data for pixels of an image, the pixels having ahigher bit depth per band. The higher bit depth per band includesgreater than 8 bits per band. The method includes dividing the imagehaving pixels with the higher bit depth per band into a plurality ofpolygonal sections, each polygonal section including substantiallyhomogenous features; computing statistical data for pixels within eachpolygonal section; and storing the statistical data with the image.

Another aspect of the present invention is to provide a system fordetermining statistical data for pixels of an image, the pixels having ahigher bit depth per band. The higher bit depth per band includesgreater than 8 bits per band. The system includes a processor configuredto: (a) divide the image having pixels with the higher bit depth perband into a plurality of polygonal sections, each polygonal sectionincluding substantially homogenous features; (b) compute statisticaldata for pixels within each polygonal section; and (c) store thestatistical data with the image.

Another aspect of the present invention is to provide a method ofconverting a first image within an image having pixels with a relativelyhigher bit depth per band into a second image having pixels with arelatively lower bit depth per band. The method includes selecting afirst image, the first image corresponding to a viewport from an imagehaving pixels with the higher bit depth per band, the image havingpixels with the higher bit depth per band being divided into a pluralitypolygonal sections, each polygonal section including substantiallyhomogenous features; and determining, for each pixel with the higher bitdepth per band within the first image, to which polygonal section in theplurality of polygonal sections each pixel belongs to. The methodfurther includes converting each pixel with the higher bit depth perband within the first image into a corresponding pixel of a lower bitdepth per band using statistical data of a polygonal section to whicheach pixel belongs to; and forming the second image having pixels of thelower bit depth per band.

Yet another aspect of the present invention is to provide a system ofconverting a first image having a relatively higher bit depth per bandinto a second image having a relatively lower bit depth per band. Thesystem includes a processor configured to: (a) select a first image, thefirst image corresponding to a viewport from an image having pixels withthe higher bit depth per band, the image having pixels with the higherbit depth per band being divided into a plurality polygonal sections,each polygonal section including substantially homogenous features; (b)determine, for each pixel with the higher bit depth per band within thefirst image, to which polygonal section in the plurality of polygonalsections each pixel belongs to; (c) convert each pixel with the higherbit depth per band within the first image into a corresponding pixel ofa lower bit depth per band using statistical data of a polygonal sectionto which each pixel belongs to; and (d) form the second image havingpixels of the lower bit depth per band.

Although the various steps of the method are described in the aboveparagraphs as occurring in a certain order, the present application isnot bound by the order in which the various steps occur. In fact, inalternative embodiments, the various steps can be executed in an orderdifferent from the order described above or otherwise herein.

These and other objects, features, and characteristics of the presentinvention, as well as the methods of operation and functions of therelated elements of structure and the combination of parts and economiesof manufacture, will become more apparent upon consideration of thefollowing description and the appended claims with reference to theaccompanying drawings, all of which form a part of this specification,wherein like reference numerals designate corresponding parts in thevarious figures. In one embodiment of the invention, the structuralcomponents illustrated herein are drawn to scale. It is to be expresslyunderstood, however, that the drawings are for the purpose ofillustration and description only and are not intended as a definitionof the limits of the invention. As used in the specification and in theclaims, the singular form of “a”, “an”, and “the” include pluralreferents unless the context clearly dictates otherwise.

BRIEF DESCRIPTION OF THE DRAWINGS

In the accompanying drawings:

FIG. 1 depicts the geographical map of the continental United States ofAmerica (CONUS) that is divided into visually homogenous regions orsections, according to an embodiment of the present invention;

FIG. 2A depicts a converted image from an unsigned 16 bits per bandimage using a conventional standard-deviation technique applied to thehistogram of the whole image file;

FIG. 2B depicts the same image converted from unsigned 16 bits per bandto an unsigned 8 bits per band image according to an embodiment of thepresent invention;

FIG. 2C depicts a polygonal layout (e.g., quadrilateral layout) used tosub-divide the image in FIG. 2B into a plurality of regions or sections;according to an embodiment of the present invention;

FIG. 3A depicts an image portion obtained when zooming into the top-leftcorner region of the image shown in FIG. 2A;

FIG. 3B depicts an image portion obtained when zooming into the top-leftcorner region of the image shown in FIG. 2B;

FIG. 4 is a representation of R-sets in relation to each other and inrelation to the original image, according to an embodiment of thepresent invention;

FIG. 5 represents a hierarchical tree or relationship structure betweenvarious quads within an image, according to an embodiment of the presentinvention;

FIG. 6 depicts a structure for storing statistical data for the originalimage and each R-set, each divided into several regions, according to anembodiment of the present invention;

FIG. 7 is a flow chart depicting a method of pre-computing thestatistical data used for converting a first image of higher bit depthto a second image of lower bit depth, according to an embodiment of thepresent invention; and

FIG. 8 is a flow chart depicting the method of converting a first imageto a second image that can be displayed for a given area of interest(AOI) in the NUI file, using feature-based statistics and associateddata generated earlier, according to an embodiment of the presentinvention.

DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION

Some image files such as image files in the new universal image (NUI)file format implemented by PIXIA Corporation, can contain a relativelylarge number of pixels that can scale to over four billion (4×10⁹) byfour billion (4×10⁹) pixel raster. NUI image files having a size ofseveral million pixels wide by several million pixels tall can be foundin many areas including geography, aerial and satellite images,medicine, etc. For example, images that cover many geographical areassuch as cities, provinces, countries and continents can be as large asseveral million pixels by several million pixels. The NUI file formathas the capacity of storing typical band layouts such as luminance,red-green-blue (RGB), near infrared (NIR), multi-spectral,hyper-spectral and ultra-spectral bands. The NUI file format can also beconfigured to store various bit-depths such as, but not limited to,unsigned 8 bits (u8), signed 16 bits (s16), unsigned 16 bits (u16),signed 32 bits (s32), unsigned 32 bits (u32), 32-bit floating point(f32), 64-bit double precision floating point (f64) and complex. Inaddition, within NUI files containing bands with signed 16-bit depth andunsigned 16-bit depth, the NUI file format can also carry between 9 and15-bits per band image data. The NUI file format can store the imagedata uncompressed. Alternatively, the NUI file format can also store theimage data as compressed. In one embodiment, the compression can beperformed using a conventional JPEG2000 compression method.

The NUI file, as part of its format, stores statistical data about theimage. This statistical data includes, but is not limited to, ahistogram of each band of each pixel in the image, minimum, maximumvalue of each band of each pixel in the image, standard deviation, mean,median, mode, skew, and kurtosis of each band of each pixel in theimage. In one embodiment, a display system or device can use thestatistical data to generate a custom look-up table (LUT). Multiple LUTsmay be generated using multiple techniques based on user's requirements.The LUT may be further used to convert pixels in the image containingbands of higher bit depth (e.g., bit depth greater than 8-bits per band)to an image containing bands of lower bit-depth (e.g., 8-bits per band)that can be displayed on, for example, a 24-bit RGB display device(i.e., a display device limited to an 8-bit depth per band).

The NUI file, as part of its format, stores in addition to the originalimage, a set of user-defined reduced resolution datasets (RRDs orR-sets). Each RRD is a smaller, zoomed-out version of a previous RRD anda first RRD is a smaller, zoomed-out version of the original image. Theterms RRD and R-set are used herein interchangeably. FIG. 4 is arepresentation of R-sets in relation to each other and in relation tothe original image, according to an embodiment of the present invention.As shown in FIG. 4, the first R-set is a zoomed-out version of theoriginal image, the second R-set is a zoomed-out version of the firstR-set, and the third R-set is a zoomed-out version of the second R-set,etc.

However, the use of the histogram for the entire NUI file, in particularwhen the NUI file is relatively large (e.g., a file containing imagerycaptured over a vast geographical region such as satellite or aerialimagery), may have a drawback. Indeed, as the number of populated pixelsin the NUI file increases, the dynamic range of pixel band color valuesstored within the image data can increase considerably. For example, alarge geographical area occupied by a country such as the United Statesof America, China, Russian Federation or India may cover variousgeographical features such as deserts, tropical forests, farmlands, snowcapped or rocky mountain ranges, and densely populated cities.Therefore, a histogram obtained from such a diverse set and vast regionof pixels would have a very broad distribution of color (e.g., golden,brownish, green, blue, etc.).

If such a diverse dynamic range of pixels is converted from higherbit-depths, for example from unsigned 16 bits (u16 bits) per band tounsigned 8 bits per band within a 3 band color scheme, a single u16 tou8 look-up table (LUT) may not have enough slots to represent all thevisual features and the range of colors within these features.

The resulting converted image (converted from higher bit depths per bandto lower bit depths per band) may look “washed out” or “faded” withevery region losing detail so as to do distribute the limited colorspace to all other regions. This is generally rectified by applyingfurther image processing methods such as a contrast curve or ditheringto the converted image. Since the detail is already lost, the best thisprocess can do is add additional artifacts that further remove detailbut give the perception of greater image fidelity. For example, subtlegradations in clouds and snow covered regions of very rocky mountainsmay not show up and would look to the eye all white. This may not bedesirable when implementing high dynamic range rendering (HDRR) and tonemapping to retain a high dynamic range image (HDRI). Hence, in order toremedy this deficiency, in one embodiment, a plurality of histograms canbe generated and stored for geographical regions that contain reasonablyhomogeneous features.

In one embodiment, a geographically diverse region image such as ageographical image of United States of America can be divided into, forexample, a plurality of polygonal image sections or regions (e.g.,triangular sections, quadrilateral sections, pentagonal sections,hexagonal sections, etc., or any combination of two or more thereof)that have reasonably visually similar geographical features. Consider ageographically contiguous region. Also consider that when looking atthis region from an elevated point (for example, of over 10,000 meters),the color-space of the region seems to be subjectively visually uniform(for example: a desert, a mountain range, or a tropical rain forest). Inone embodiment, such a region can be considered as having reasonablysimilar features in the present context. Such a region can also bereferred to as a relatively homogenous region in the present context.Histograms and LUTs can be computed for each of the plurality ofpolygonal image sections. One of the LUTs computed for a specific imagesection can be selected and applied to pixels that fall into that imagesection and having a higher bit-depth per band to transform eachrespective image section into a corresponding image section having alower bit-depth per band that can be displayed or viewed on a displaydevice. In other words, a specific look up table within the computedplurality of LUTs that is associated with the polygonal section to whicha pixel with the higher bit depth per band belongs to can be selectedand used to transform the pixel having the higher bit depth per bandinto a pixel having a lower bit-depth per band that can be displayed orviewed on a display device. A LUT generated by using the overall imagehistogram can be applied to pixels that fall in sections outside of anyof the polygonal image sections having the features. However, the LUTgenerated by using the overall image histogram may not be needed if eachpixel in the image falls within at least one specific polygonal sectioncontaining a feature. In other words, the LUT generated by using theoverall image histogram may not be needed if substantially the entireimage is divided into polygonal sections for which a specific LUT can becalculated.

For instance, for a given NUI image or R-set, the NUI can be dividedinto R distinct relatively homogenous regions. For each specificrelatively homogenous region R_(s) (i.e., for each region havingrelatively homogeneous features), an entry E_(s) can be computed. Theentry E_(s) is an abstract object that contains all statistical andpolygonal data to associate E_(s) with a corresponding region R_(s).

In one embodiment, the polygonal sections can be quadrilateral sections.In one embodiment, an entry E_(s) of each quadrilateral section in theplurality of quadrilateral sections contains: (a) a single quadrilateral(quad) Q_(s). The quad Q_(s) is defined, for example, as a closelyconvex quadrilateral in pixel space to cover a region R_(s) that isreasonably homogenous with respect to its visual features F_(s). In oneembodiment, the selection of the quadrilateral sections or regionshaving the homogenous features in the image can be accomplished manuallyby selecting manually each quadrilateral region or section in the imagebased on the perception of a user. In another embodiment, the selectionof the quadrilateral sections can be accomplished automatically usingmethods or algorithms (implemented by hardware or software) that candetect various homogenous features and thus delimit the varioushomogenous features by quadrilaterals to define the quadrilateralsections.

In one embodiment, the entry E_(s) further contains (b) statisticaldata, for example in the form of a histogram H_(s) for all pixels withinthe quadrilateral Q_(s). The histogram H_(s) is computed and stored foreach band in each pixel within the homogenous quad Q_(s) section. In oneembodiment, pixels on the boundaries of each quadrilateral section Q_(s)can be included within the quadrilateral sections so as to eliminate,for example, sub-pixel errors or lost pixel issues. The relativehomogeneity of each quadrilateral region or section is substantially notaffected by the addition of the boundary pixels. The time t_(s) at whichH_(s) was generated is also stored.

In one embodiment, the statistical data may further include, optionally,(c) a plurality of N computed LUTs, i.e., N LUTs L[N]_(s), where N isselected between zero and N_(max) (i.e., 0<N<N_(max)). N_(max) may beuser-defined. The plurality N LUTs are generated and saved by applyingmethods that employ the histogram (e.g., histogram equalization,standard deviation, min-max stretching, linear contrast curves,gamma-based contrast curves, S-shaped contrast curves, Gaussian curves,etc.). The time t[N]_(s) at which each of LUTs L[N]_(s) were generatedmay be saved.

In one embodiment, the statistical data may also include, optionally,(d) a plurality of M custom LUTs L[M]_(s), where M is selected betweenzero and M_(max) (i.e., 0<M<M_(max)). M_(max) may be user defined. Thetime t[M]_(s) at which the LUTs were generated may be saved. A customLUT is a LUT generated manually or derived empirically with manualintervention and control.

Hence, in one embodiment, an entry E_(s) is associated with each quadQ_(s) that covers a region R_(s) having homogenous features F_(s).Therefore, there are several entries E_(s) per NUI image as well as foreach of its R-sets. A histogram H_(s) is computed for all pixels withina quad Q_(s) and stored at time t_(s). Optionally, a plurality ofN-computed LUTs L[N]_(s) and a plurality of M-custom LUTs L[M]_(s) maybe computed and stored at, respectively, time t[N]_(s) and timet[M]_(s). Therefore, E_(s) is an object whose members are Q_(s), H_(s),t_(s), and optionally L[N]_(s) and t[N]_(s), L[M]_(s) and t[M]_(s).Given a subjectively homogenous visual feature F_(s) that covers ageographic region R_(s), the corresponding entry E_(s) contains datathat is sufficient to quantitatively define the geographic bounds ofregion R_(s) and convert all pixels that are within region R_(s) from aknown bit-depth higher than 8-bits per band to 8-bits per band forvisualizing these pixels on a 24-bit RGB display device. In oneembodiment, E_(s) may be represented as E_(s)(Q_(s), H_(s), t_(s),L[N]_(s) at t[N]_(s), L[M]_(s) at t[M]_(s)).

In one embodiment, if the number of regions for a given image isrelatively large, optionally, a bounding quad Q_(b) is generated for agroup of T quads Q_(s)[T] (where T≧0) based on geographical proximity.In one embodiment, under a single bounding Q_(b), multiple quads Q_(s)may overlap. In addition, in one embodiment, multiple bounding quadsQ_(b) may also overlap. FIG. 5 represents a hierarchical tree orrelationship structure between the various quads, according to enembodiment of the present invention. The root of the tree or structurerepresents the entire image. As shown in FIG. 5, an image is dividedinto four regions R₁, R₂, R₃ and R₄, each defined by quads Q_(s1),Q_(s2), Q_(s3) and Q_(s4). The quads being defined, the image is furtherdivided into two further quads Q_(b1) and Q_(b2). As shown in FIG. 5,Q_(b1) covers Q_(s4) completely and Q_(s1) and Q_(s3) partially. Also asshown in FIG. 5, Q_(b2) covers Q_(s4) completely and Q_(s1) and Q_(s3)partially.

In one embodiment, a hierarchical tree of overlapping bounding quadsQ_(b) can be generated such that for a given bounding quad Q_(b):

(a) the siblings of the bounding quad Q_(b) are in the general proximityof the bounding quad Q_(b);

(b) the bounding quad Q_(b) wholly or partially envelopes the childrenQ_(s) of the bounding quad Q_(b); and

(c) the parent of the bounding quad Q_(b) wholly envelopes the boundingquad Q_(b).

In one embodiment, the root Q_(b(root)) of the hierarchical tree ofoverlapping plurality of bounding quads Q_(b) is defined as the boundingbox of the NUI file, and the leaf nodes at the bottom of thehierarchical tree of overlapping plurality of bounding quads Q_(b) areall entries E_(s), each entry E_(s) being associated with acorresponding quad Q_(s).

For example, a single root Q_(b(root)) having a plurality of entriesE_(s) (associated with quads Q_(s)) as children can be used. When asearch is performed to find a quad Q_(s) containing a pixel P_(i) (see,FIG. 5), any well known tree-based search algorithm may be used.Consider the tree structure depicted in FIG. 5. If a pixel is in theregion defined by Q_(s) 2, for example, the search would look for thepixel from the root node Q_(b(root)). From the root node Q_(b(root)),the search would move to node Q_(b1) because the pixel is within thebounds of Q_(b1). Within bounding quad Q_(b1), the sections quads Q_(s)1, Q_(s) 2 and Q_(s) 3 are stored sorted in ascending or descendingorder of their geographical coordinates. By applying a known searchalgorithm through these regions, the pixel that is indeed within thequad Q_(s) 2 can be found or located. Once this is known, the selectedLUT from the corresponding entry E_(s) 2 (associated with the quad Q_(s)2) is applied to convert P_(i) to the corresponding pixel in the lowerbit-depth output image.

FIG. 6 depicts a structure for storing statistical data for the originalimage and each R-set, each divided into several regions, according to anembodiment of the present invention. This method of generating andstoring feature-based statistics for a given image is applied to theoriginal image and all its R-sets within the NUI file. The originalimage and each of its R-set is divided into several regions, each regionR_(s) for the image or R-set containing an entry E_(s). The originalimage and each R-set also store the hierarchical tree to further assistin matching a pixel to a corresponding region quad Q_(s) and hence tothe entry E_(s) containing Q_(s).

FIG. 7 is a flow chart depicting a method of pre-computing thestatistical data used for converting a first image of higher bit depthto a second image of lower bit depth, according to an embodiment of thepresent invention. A NUI file containing an original image and aplurality of R-sets covering a large geographical area containing avariety of visual features, the visual features covering a wide gamut ofcolor-space, are input, at S10. A first method or procedure (method A)is applied to the inputted NUI file, at S20. The method A includesdividing the image (original image) into visually homogenous regions, asdescribed in the above paragraphs, at S22. Pixels within the homogenousregions may overlap. Pixels included in all regions cover or form theentire image. The method A further includes applying a sub-procedure ormethod B to each region R_(s), at S24. The sub-procedure (method B) willbe described in detail in the following paragraphs. The method orprocedure A further includes determining whether the number of regionswithin the image is a large number, and if the number of regions withinthe image is a large number, optionally computing a hierarchical tree toorganize all regions into a tree-based structure, at S26. The method Afurther includes, storing the hierarchical tree-based structure into thefile containing the image data, at S28.

The sub-procedure method B includes storing bounds of a region in a quadQ_(s), at S241. The sub-procedure B further includes computing histogramH_(s) of all bands for all pixels contained within the quad Q_(s), andrecord a time t_(s) at which it was computed, at S242. The sub-proceduremethod B further includes, optionally computing a number N of look-uptables or LUT_(s) (L[N]_(s)), each LUT containing a pre-computed pixelconversion table for all bands, to convert pixels at a higher-bit depthto a lower-bit depth, and record times at which the LUTs were generated,at S243. The sub-procedure method B may further include, optionallycompute an additional number M of look-up tables or LUTs (L[M]_(s)),each containing a user-defined, custom pixel conversion table for allbands, to convert pixels at a higher-bit depth to a lower-bit depth, andrecord times at which the LUT_(s) were generated, at S244. Thesub-procedure method B proceeds by creating an entry E_(s) containingQ_(s), H_(s), and t _(s), L[N]_(s) and t[N]_(s), and L[M]_(s) andt[M]_(s), at S245. The sub-procedure method B further stores the createdentry Es into the file containing the image data.

FIG. 8 is a flow chart depicting the method of converting a first imageto a second image that can be displayed for a given area of interest(AOI) or viewport in the NUI file, using feature-based statistics andassociated data generated earlier, according to an embodiment of thepresent invention. The method includes, for a NUI file having a pixeldepth per band greater than 8-bit per band, selecting a specific LUTfrom either L[N] or L[M] where N or M is known, at S30. The methodfurther includes, reading pixels from an area of interest (AOI) orviewport from a NUI file, at S32. The areas of interest AOI or viewportcan be for example a rectangular area within the bound quad Q_(b1), asshown in FIG. 5.

A viewport can be defined as a “window” within an image having a pixelwidth W and a pixel height H. The image can have a large pixel width(e.g., 1,000,000 pixels) and a large pixel height (e.g., 2,000,000pixels). Such an image cannot be displayed on current display devices(e.g., a screen) in its entirety. In addition, such an image cannot beloaded in computer main memory in its entirety for any form ofprocessing, given current available computer main memory capacity.Hence, an application is forced to load a smaller sub-section, window,area-of-interest or viewport of the very large image. This smallersub-section, window or viewport has a pixel width VW and pixel height VHwhich typically range from several tens of pixels to several thousandsof pixels (where W>VW and H>VH). For instance, within a 1,000,000 pixelwide and 2,000,000 pixel tall image, a sub-section or viewport startingfrom pixel coordinate (300000, 450000) within the image and having apixel width of 1920 pixels and a pixel height of 1080 pixels can beselected. The viewport is wholly contained within the image. Therefore,if (0, 0) is the address of the top left pixel of the W×H image, and if(X, Y) is the address of the top left corner pixel of the VW×VH viewportwithin the image, then 0≦x≦(X+VW)≦W and 0≦y≦(Y+VH)≦H.

The method further includes for each pixel P_(i), traversing Q_(b(root))to find a Q_(s) that contains P_(i), at S34. If the pixel P_(i) iswithin multiple overlapping Q_(s), the Q_(s) having the most recent timet_(s) can be selected. The selected Q_(s) is associated to an entryE_(s). The entry E_(s) contains the type of LUT that the user selected.The method further includes, for each band in the pixel, determining its8-bit value and populating the corresponding pixel in the convertedimage (i.e., converted AOI or viewport), at S36. In one embodiment, theselection of the Q_(s) for each pixel and the determination for eachband of the pixel its 8-bit value is performed using parallelprocessing. However, as it can be appreciated, in another embodiment,this can also be performed using sequential processing. After each pixelis processed as described above, the converted image can then bedisplayed on a display device (e.g. a display screen), at S38.

The data that is generated using the above outlined procedure can bestored within a NUI file as a NUI Property. In one embodiment, the datacan be formatted in Extensible Markup Language (XML) for readability.Alternatively, the data can be stored as a data structure in binaryformat.

For example, in the case of the continental United States of America(CONUS), if one were to generate multiple NUI image files to cover theentire continental United States, at a resolution of 1 meter per pixel,each NUI can range from few hundred gigabytes (GB) to several terabytes(TB). FIG. 1 depicts the geographical map of the continental UnitedStates of America (CONUS). An example of areas covered by the multipleNUI image files are shown as dotted rectangles on the geographical map.On the other hand, if the continental United States is divided intovisually homogenous regions or sections (i.e., divided on regions havingsubstantially homogenous features), quadrilateral shaped regions (quadregions) can be defined and shown on the geographical map of thecontinental United States of America. As shown in FIG. 1, thequadrilaterals can have various shapes including trapezoid shape,rectangular shape, or any other polygonal shape (e.g., pentagonal shape,hexagonal shape, or other more complex shape, etc.). As a result, eachof the rectangles defining the NUI images can be divided into severalquad regions. For example, as shown in FIG. 1, the NUI image of the areaA₁ is divided into about 10 homogenous regions or sections R₁, R₂, . . ., R₁₀.

For each specific homogenous region R₁, R₂, . . . , R₁₀, a correspondingentry E₁, E₂, . . . , E₁₀ is available and stored in the NUI file. Anygiven pixel P_(i)(x, y) in a NUI file may fall within multiple regionsand thus may be associated with a plurality of entries E_(s). Forexample, as shown in FIG. 1, a pixel may fall within homogenous sectionR₁ and within homogenous section R₃. In other words, the homogenoussections R₁ and R₃ overlap. As a result, the pixel that falls withinboth R₁ and R₃ may be associated with both entryE₁ and entry E₃. In thiscase, a simple rule may be applied to identify which entry to select (E₁or E₃). For example, the entry E₃ can be selected if time t₃ is greaterthan time t₁.

A plurality of LUTs (N LUTs) can be generated by applying methods thatemploy a histogram H_(s) for all pixels within a given quad. The LUTsare generated using various methods including, histogram equalization,standard deviation, min-max stretching, linear contrast curves,gamma-based contrast curves, S-shaped contrast curves, Gaussian, etc.The N LUTs are then saved in the NUI file. For example, a plurality ofLUTs can be generated for region R₁ by employing histogram H₁ withinentry E₁. The plurality of LUTs generated for region R₁ are saved theNUI file that contains the region R₁.

A LUT determines the “look” of the image, after it is converted. Theuser may manually select what kind of LUT best describes the way inwhich the user wants to display the image prior to performing theconversion.

In the case where some pixels within a NUI file are replaced by otherpixels, E_(s) entries for the regions containing the updated pixels alsoneed to be updated accordingly. In another embodiment, the histogramupdate can be accomplished by re-computing the histograms H_(s) and theLUTs in the entry E_(s) for the updated pixels.

As stated in the above paragraphs, in one embodiment, the homogenousregions containing substantially homogenous features can be generated ordetermined manually based on the perception of a user or determinedautomatically using feature-detection methods or algorithms. In oneembodiment, a database of regions that have substantially homogenousgeographic features can be generated manually for the whole globe. Thedatabase can then be maintained or updated infrequently to take intoaccount, for example, seasonal changes (spring, summer, fall andwinter). Indeed, regions that were, for instance, greener during summercan be covered with snow during winter. As a result, regions that werepart of one or more “greener quads” may be annexed to one or more“whiter quads.” In one embodiment, thermal and topological contour mapscan be used to extend automation of the process of generating quads withhomogenous geographic features. Desired regions having substantiallyhomogenous features can be selected from the database and can be used togenerate a list of histogram entries for a given NUI file.

FIG. 2A depicts a converted image from an unsigned 16 bits per band. Theconverted image contains a significant dynamic range of data, as shownon the top left area and on the bottom right area of the image. Theimage is converted using a conventional standard-deviation applied tothe histogram of the entire image file. A LUT is derived and applied toconvert the unsigned 16 bits per band image from the higher bit-depthper band (16 bits per band) to a lower bit-depth per band (8 bits perband) to display or view the converted image on a display device, thedisplay device being configured to display an image having a pixel depthof 8 bits per band. This image shows what the output 8-bit depth imagewould look like without applying the method of converting an imagehaving a higher-bit depth per band into an image having a lower bitdepth per band described herein.

FIG. 2B depicts the same image converted from unsigned 16 bits per bandto an unsigned 8 bits per band image according to an embodiment of thepresent invention. The regions have been shown in FIG. 2C. A histogramwas computed for each of the regions. For each region, using thehistogram, the corresponding unsigned 16 bit to unsigned 8 bit look-uptable was generated using a conventional standard deviation method. Thelook-up table was then applied to the image within the correspondingregion to convert from the original unsigned 16-bit image to adisplayable unsigned 8-bit image.

The image shown in FIG. 2B looks “patchy” relative to the image shown inFIG. 2A which is relatively smooth and even. However, the “patchiness”of the image in FIG. 2B is due to the fact that the image in FIG. 2B isdivided into polygonal regions (e.g. quadrilaterals) havingsubstantially homogenous features so as to improve local detail byadjusting the dynamic range in each of the regions using statisticalinformation computed for only those pixels that fall within thoseregions.

FIG. 2C depicts the polygonal layout (e.g., quadrilateral layout) usedto divide the image in FIG. 2B into a plurality of regions or sections,according to an embodiment of the present invention. A plurality of LUTsare computed using histograms determined for each of the plurality ofregions. As a result, the regions that define the “patchy” image displaydetail that is better than if a single LUT was derived from thehistogram of the entire image, as is the case for the image shown inFIG. 2A.

FIG. 3A depicts an image portion obtained when zooming into the top-leftcorner region of the image shown in FIG. 2A. FIG. 3B depicts an imageportion obtained when zooming into the top-left corner region of theimage shown in FIG. 2B. The image portion shown in FIG. 3A lackscontrast and detail of the features in this image portion can not bediscerned. On the other hand, the image portion shown in FIG. 3B andcovering the same area covered by the image shown in FIG. 3A, is crispand details of features in this image portion can be discerned.

Hence, the method of computing a histogram for each region in aplurality of regions allow for accommodating a greater dynamic range ofcolor when converting pixel data from higher bit depths per band tolower bit depths per band (e.g., 8 bits per band) for display on astandard 24-bit RGB displays. By pre-computing and storing feature-basedstatistics or statistical data and histograms within images with thehigher bit depths per band, conversion of an area or region of interestfrom a higher bit depth per band into lower bit depth per band can bedirectly performed (i.e., performed “on-the-fly”). This would eliminatethe need to generate additional for-display-only 8 bits per band imageconversion. By eliminating the need to generate additionalfor-display-only 8 bits per band image conversion, the use of storagedisk space can be reduced or minimized.

In some embodiments, programs for performing methods in accordance withembodiments of the invention can be embodied as program products in acomputer such as a personal computer or server or in a distributedcomputing environment comprising a plurality of computers. The computermay include, for example, a desktop computer, a laptop computer, ahandheld computing device such as a PDA, etc. The computer programproducts may include a computer readable medium or storage medium ormedia having instructions stored thereon used to program a computer toperform the methods described above. Examples of suitable storage mediumor media include any type of disk including floppy disks, optical disks,DVDs, CD ROMs, magnetic optical disks, RAMs, EPROMs, EEPROMs, magneticor optical cards, hard disk, flash card (e.g., a USB flash card), PCMCIAmemory card, smart card, or other media. Alternatively, a portion or thewhole computer program product can be downloaded from a remote computeror server via a network such as the internet, an ATM network, a widearea network (WAN) or a local area network.

Stored on one or more of the computer readable media, the program mayinclude software for controlling both the hardware of a general purposeor specialized computer or processor. The software also enables thecomputer or processor to interact with a user via output devices such asa graphical user interface, head mounted display (HMD), etc. Thesoftware may also include, but is not limited to, device drivers,operating systems and user applications.

Alternatively, instead or in addition to implementing the methodsdescribed above as computer program products) (e.g., as softwareproducts) embodied in a computer, the method described above can beimplemented as hardware in which for example an application specificintegrated circuit (ASIC) can be designed to implement the method ormethods of the present invention.

Although the various steps of the method(s) are described in the aboveparagraphs as occurring in a certain order, the present application isnot bound by the order in which the various steps occur. In fact, inalternative embodiments, the various steps can be executed in an orderdifferent from the order described above.

Although the invention has been described in detail for the purpose ofillustration based on what is currently considered to be the mostpractical and preferred embodiments, it is to be understood that suchdetail is solely for that purpose and that the invention is not limitedto the disclosed embodiments, but, on the contrary, is intended to covermodifications and equivalent arrangements that are within the spirit andscope of the appended claims. For example, it is to be understood thatthe present invention contemplates that, to the extent possible, one ormore features of any embodiment can be combined with one or morefeatures of any other embodiment.

Furthermore, since numerous modifications and changes will readily occurto those of skill in the art, it is not desired to limit the inventionto the exact construction and operation described herein. Accordingly,all suitable modifications and equivalents should be considered asfalling within the spirit and scope of the invention.

What is claimed:
 1. A method for determining statistical data for pixelsof an image, the pixels having a higher bit depth per band, wherein thehigher bit depth per band comprises greater than 8 bits per band, themethod comprising: dividing the image having pixels with the higher bitdepth per band into a plurality of polygonal sections, each polygonalsection including substantially homogenous features; computingstatistical data for pixels within each polygonal section; and storingthe statistical data with the image; wherein said computing statisticaldata for the pixels within each polygonal section comprises: computing afirst plurality of look up tables, each look up table in the firstplurality of look up tables comprising a pre-computed pixel conversiontable for all bands of each pixel, and times at which the firstplurality of look up tables are generated.
 2. The method according toclaim 1, wherein the substantially homogenous features are determinedbased on a perception of a user.
 3. The method according to claim 1,wherein the substantially homogenous features are determined by acomputer algorithm.
 4. The method according to claim 1, wherein theplurality of polygonal sections comprise one or more of triangularsections, quadrilateral sections, pentagonal sections, or hexagonalsections, or any combination of two or more thereof.
 5. The methodaccording to claim 1, wherein computing statistical data for pixelswithin each polygonal section comprises computing histograms for thepixels.
 6. The method according to claim 5, wherein computing histogramsfor the pixels comprises computing, minimum value, maximum value,standard deviation, mean, median, mode, skew, or kurtosis, or anycombination of two or more thereof, of each band of each pixel in theimage.
 7. The method according to claim 1, further comprising: computinga second plurality of look up tables, each look up table in the secondplurality of look up tables comprising a custom pixel conversion tablefor all bands of each pixel, and times at which the second plurality oflook up tables are generated.
 8. The method according to claim 7,wherein computing the second plurality of look up tables comprisesgenerating the second look up tables using custom pixel conversiontables defined by a user.
 9. The method according to claim 1, furthercomprising reading pixel data of the image having the higher-bit depthper band, wherein the pixel data of the image is stored in a newuniversal image (NUI) file.
 10. The method according to claim 9, whereinthe statistical data is stored with the image in the NUI file.
 11. Acomputer program product comprising a computer readable medium havinginstructions stored thereon when executed by a computer system performsthe method recited in claim
 1. 12. A method for determining statisticaldata for pixels of an image, the pixels having a higher bit depth perband, wherein the higher bit depth per band comprises greater than 8bits per band, the method comprising: dividing the image having pixelswith the higher bit depth per band into a plurality of polygonalsubstantially homogenous features; computing statistical data for pixelswithin each polygonal section; and storing the statistical data with theimage; selecting a first image within the image having pixels with thehigher bit depth per band, the first image corresponding to a viewportfrom the image having pixels with the higher bit depth per band;determining, for each pixel with the higher bit depth per band withinthe first image, to which polygonal section in the plurality ofpolygonal sections each pixel belongs to; converting each pixel with thehigher bit depth per band within the first image into a correspondingpixel of a lower bit depth per band using statistical data of apolygonal section to which the pixel with the higher bit depth per bandbelongs to, wherein the lower bit depth per band comprises 8 or lessbits per band; and forming a second image having pixels of the lower bitdepth per band.
 13. The method according to claim 12, furthercomprising: displaying the second image having pixels of the lower bitdepth per band on a display device.
 14. The method according to claim12, wherein computing statistical data for the pixels comprisescomputing a plurality of look up tables, each look up table in theplurality of look up tables being associated with a correspondingpolygonal section of the plurality of polygonal sections.
 15. The methodaccording to claim 14, further comprising selecting a specific look uptable within the plurality of lookup tables that is associated with thepolygonal section to which the pixel with the higher bit depth per bandbelongs to.
 16. A system for determining statistical data for pixels ofan image, the pixels having a higher-bit depth per band, wherein thehigher bit depth per band comprises greater than 8 bits per band, thesystem comprising: a processor configured to: divide the image havingpixels with the higher bit depth per band into a plurality of polygonalsections, each polygonal section including substantially homogenousfeatures; compute statistical data for pixels within each polygonalsection; and store the statistical data with the image; select a firstimage within the image having pixels with the higher bit depth per band,the first image corresponding to a viewport from the image having pixelswith the higher bit depth per band; determine, for each pixel of thehigher bit depth per band within the first image, to which polygonalsection in the plurality of polygonal sections each pixel belongs to;convert each pixel with the higher bit depth per band within the firstimage into a corresponding pixel with a lower bit depth per band usingthe statistical data of a polygonal section to which the pixel with thehigher bit depth per band belongs to, wherein the lower bit depth perband comprises 8 or less bits per band; and form a second image havingpixels of the lower bit depth per band.
 17. The system according toclaim 16, wherein the processor is configured to compute histograms forthe pixels.
 18. The system according to claim 16, wherein the processoris configured to compute minimum value, maximum value, standarddeviation, mean, median, mode, skew, or kurtosis, or any combination oftwo or more thereof, of each band of each pixel in the image.
 19. Thesystem according to claim 16, wherein the processor is configured tocompute look up tables for the pixels using the histograms.
 20. Thesystem according to claim 16, further comprising a storage device incommunication with the processor, the storage device configured to storepixel data of the image in a new universal image (NUI) file.
 21. Themethod according to claim 20, wherein the statistical data is storedwith the image in the NUI file.
 22. The system according to claim 16,further comprising: a display device in communication with theprocessor, the display device configured to display the second imagehaving the lower bit depth per band.
 23. The system according to claim16, wherein the processor is further configured to compute a pluralityof look up tables, each look up table in the plurality of look up tablesbeing associated with a corresponding polygonal section of the pluralityof polygonal sections.
 24. The system according to claim 23, wherein theprocessor is configured to select a specific look up table within theplurality of lookup tables that is associated with the polygonal sectionto which the pixel with the higher bit depth per band belongs to.
 25. Amethod of converting a first image within an image having pixels with arelatively higher bit depth per band into a second image having pixelswith a relatively lower bit depth per band, comprising: selecting afirst image, the first image corresponding to a viewport from an imagehaving pixels with the higher bit depth per band, the image havingpixels with the higher bit depth per band being divided into a pluralitypolygonal sections, each polygonal section including substantiallyhomogenous features; determining, for each pixel with the higher bitdepth per band within the first image, to which polygonal section in theplurality of polygonal sections each pixel belongs to; converting eachpixel with the higher bit depth per band within the first image into acorresponding pixel of a lower bit depth per band using statistical dataof a polygonal section to which each pixel belongs to; and forming thesecond image having pixels of the lower bit depth per band.
 26. Themethod according to claim 25, further comprising: displaying the secondimage having pixels of the lower bit depth per band on a display device.27. The method according to claim 25, wherein the second image havingthe lower bit depth per band includes an image having a bit depth perband less than or equal to 8 bits per band.
 28. A computer programproduct comprising a computer readable medium having instructions storedthereon when executed by a computer system performs the method recitedin claim
 25. 29. A system of converting a first image having arelatively higher bit depth per band into a second image having arelatively lower bit depth per band, comprising: a processor configuredto: select a first image, the first image corresponding to a viewportfrom an image having pixels with the higher bit depth per band, theimage having pixels with the higher bit depth per band being dividedinto a plurality polygonal sections, each polygonal section includingsubstantially homogenous features; determine, for each pixel with thehigher bit depth per band within the first image, to which polygonalsection in the plurality of polygonal sections each pixel belongs to;convert each pixel with the higher bit depth per band within the firstimage into a corresponding pixel of a lower bit depth per band usingstatistical data of a polygonal section to which each pixel belongs to;and form the second image having pixels of the lower bit depth per band.30. The system according to claim 29, further comprising: a displaydevice in communication with the processor, the display deviceconfigured to display the second image having the lower bit depth perband.
 31. The system according to claim 29, wherein the second imagehaving the lower hit depth per band includes an image having a bit depthper band less than or equal to 8 bits per band.